package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Portrait;

import java.util.List;
import java.util.Map;

public interface MenuService {
    List<Menu> getMenu(String username) throws Exception;


    Portrait getimg(String username);

    void edit(Map map);

    List<Menu> findAllMenu();

    List<Integer> findAllByMenu(Integer id);

    List<Map> getrole(String username);

    List<Menu> getMenu(String username,Integer id) throws Exception;

    PageResult findPage(QueryPageBean queryPageBean);

    List<Menu> findById(Integer id);

    String getRoleName(String username);
}
